package display;

import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;

public class PauseDisplay extends JPanel{
	
	private Container TheContainer;

	public PauseDisplay(Container pContainer){
		TheContainer = pContainer;
		this.setSize(1000, 1000);
		this.setVisible(false);
		TheContainer.add(this);
	}
	
	public void paintComponent(Graphics g){
		int x = Utils.paddingFrame;
		int y = Utils.paddingFrame+Utils.getBoardHeightPx()/2-50/2;
		
		g.setColor(new Color(Utils.pauseBackgroundColor.getRed(),Utils.pauseBackgroundColor.getGreen(),Utils.pauseBackgroundColor.getBlue(),Utils.pauseAlpha));
		g.fillRect(x, y, Utils.getBoardWidthPx(), 50);
		
		g.setFont(new Font("Arial",Font.BOLD,16));
		g.setColor(Utils.pauseTextColor);
		g.drawString("Pause", x+80, y+30);
	}
	
	
}
